package com.lc202309;

/**
 * Description:
 *
 * @Create 2023/9/23 21:29
 * @Version 1.0
 */
public class Solution_LCR713 {
    public int takeAttendance(int[] record) {
        int length = record.length;
        for (int i = 0; i < length; i++) {
            if (i != record[i]) {
                return i;
            }
        }
        return length;
    }
}
